Skip to content

Fix GH-25737: mb_send_mail() ignores $additional_params - #25739

Closed
thunderer wants to merge 1 commit into
php:PHP-8.6from
thunderer:fix/mb-send-mail-additional-params
Closed

thunderer wants to merge 1 commit into
php:PHP-8.6from
thunderer:fix/mb-send-mail-additional-params

Conversation

@thunderer

Copy link
Copy Markdown
Contributor

Fixes GH-25737.

b621f80 replaced zend_ini_str_ex() with zend_ini_str_literal() in mb_send_mail(). For a setting without a value, zend_ini_str_literal() returns an empty string instead of NULL, so an unset mail.force_extra_parameters replaced $additional_params with an empty string.

This restores the previous call, so an explicitly empty mail.force_extra_parameters still replaces $additional_params, as in PHP 8.5. The test fails without the change.

@youkidearitai youkidearitai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks

@LamentXU123 LamentXU123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

LamentXU123 added a commit that referenced this pull request Nov 25, 2026
* PHP-8.6:
  Fix GH-25737: mb_send_mail() ignores $additional_params (#25739)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants